package cn.cnf.mapper;

import cn.cnf.entity.Subscribe;
import cn.cnf.entity.vo.SubscribeInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (subscribe)数据Mapper
 *
 * @author ZhuMeiYi
 * @description
 * @since 2020-12-25 12:19:41
 */
@Mapper
public interface SubscribeMapper extends BaseMapper<Subscribe> {

    /**
     * 获取用户全部订阅的漫画
     *
     * @param userId
     * @return
     */
    List<SubscribeInfo> getAllSubscribeComic(@Param("userId") String userId);

    List<SubscribeInfo> getAllSubscribeNovel(@Param("userId") String userId);
}
